projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
444dc1e
)
fix sample code to do with color-rs. Renamed HSV to Hsv and RGB to Rgb so that it...
author
jakescott
<jake.net@gmail.com>
Tue, 9 Sep 2014 04:30:25 +0000
(16:30 +1200)
committer
jakescott
<jake.net@gmail.com>
Tue, 9 Sep 2014 04:30:25 +0000
(16:30 +1200)
src/doc/source/guide.md
patch
|
blob
|
history
diff --git
a/src/doc/source/guide.md
b/src/doc/source/guide.md
index 3fa8edcc831caa44e95efcad19723961c3a62ec6..c826d0194adb7a28c21e2b95cb71734bfccf1c9e 100644
(file)
--- a/
src/doc/source/guide.md
+++ b/
src/doc/source/guide.md
@@
-141,11
+141,11
@@
Now, you can pull in that library using `extern crate` in
```rs
extern crate color;
-use color::{R
GB, ToHSV
};
+use color::{R
gb, ToHsv
};
fn main() {
println!("Converting RGB to HSV!");
- let red = R
GB
::new(255u8, 0, 0);
+ let red = R
gb
::new(255u8, 0, 0);
println!("HSV: {}", red.to_hsv::<f32>());
}
```